-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code cleanup--tests #29030
Code cleanup--tests #29030
Conversation
@@ -64,7 +66,9 @@ private class MockOperation<T> : OperationExecutor.OperationBase | |||
{ | |||
public MockOperation(IOperationResultHandler resultHandler, Func<T> action) | |||
: base(resultHandler) | |||
=> Execute(action); | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe there's a rule to allow this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but we previously decided to not use expression bodies for constructors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok :(
@@ -90,7 +90,8 @@ public void Test_new_annotations_handled_for_entity_types() | |||
RelationalAnnotationNames.ModelDependencies, | |||
RelationalAnnotationNames.FieldValueGetter, | |||
RelationalAnnotationNames.JsonPropertyName, | |||
RelationalAnnotationNames.ContainerColumnName, // Appears on entity type but requires specific model (i.e. owned types that can map to json, otherwise validation throws) | |||
RelationalAnnotationNames |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can just put the comment on the preceding line or something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
{ | ||
Name = "Initial", | ||
}; | ||
var entity = new Entity { Name = "Initial", }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var entity = new Entity { Name = "Initial", }; | |
var entity = new Entity { Name = "Initial" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -34,7 +34,7 @@ public void Compare_returns_0_only_for_commands_that_are_equal() | |||
entry1.SetEntityState(EntityState.Added); | |||
var modificationCommandAdded = modificationCommandSource.CreateModificationCommand( | |||
new ModificationCommandParameters(table, false, false, null, new ParameterNameGenerator().GenerateNext)); | |||
// new ModificationCommandParameters("A", null, false, false, null, new ParameterNameGenerator().GenerateNext)); | |||
// new ModificationCommandParameters("A", null, false, false, null, new ParameterNameGenerator().GenerateNext)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// new ModificationCommandParameters("A", null, false, false, null, new ParameterNameGenerator().GenerateNext)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Fixes #28964
e1417af
to
ccd020b
Compare
Fixes #28964